# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnetfilter_cthelper
pkgver=1.0.1
pkgrel=2
pkgdesc="A Netfilter netlink library for connection tracking helpers"
url="https://www.netfilter.org/projects/libnetfilter_cthelper/"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers libmnl-dev"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/libnetfilter_cthelper/files/libnetfilter_cthelper-$pkgver.tar.bz2"
options="!check"

prepare() {
 	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f0591edd579aee92b62446e2b8fef6af9c404848c42c8da76850bb01aec3567442612f53cf8d3af6ba4d6d920487bff310a4e547bccf595478b1f96b4280eada  libnetfilter_cthelper-1.0.1.tar.bz2
"
